<!-- BEGIN: main -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<title>{METATAG.title}</title>
<meta http-equiv="Content-Type" content="{METATAG.Content_Type}" />
<meta http-equiv="Content-Script-Type" content="{METATAG.Content_Script_Type}" />
<meta http-equiv="Content-Style-Type" content="{METATAG.Content_Style_Type}" />
<link rel="INDEX" href="{METATAG.index_href}" title="{METATAG.index_title}" />
<link rel="stylesheet" href="{URL_TEMPLATE_ADMIN}css/main_fo.css" type="text/css" />
<link rel="stylesheet" href="{URL_JS}jquery-ui/development-bundle/themes/base/ui.all.css" type="text/css" />
<meta name="Description" content="{METATAG.Description}" />
<script language="JavaScript1.2">
	var sDataFolder = "C:\\Program Files\\Brother bPAC SDK\\Templates\\";
	function do_preview(proID,cateID,cateName,barCode,dPrint,strExport)
	{
		var ObjDoc = new ActiveXObject("BrssCom.Document");
		strFilePath = "C:\\ams.lbl";
		if (ObjDoc.Open(strFilePath) == true)
		{
			nIndex = ObjDoc.GetTextIndex("PID");
			ObjDoc.SetText(nIndex, proID);
			nIndex = ObjDoc.GetTextIndex("CName");
			ObjDoc.SetText(nIndex, cateName);
			nIndex = ObjDoc.GetTextIndex("YID");
			ObjDoc.SetText(nIndex, cateID);
			nIndex = ObjDoc.GetTextIndex("DPrint");
			ObjDoc.SetText(nIndex, dPrint);
			
			ObjDoc.SetBarcodeData(0, barCode);
			if(strExport == "") 
			{
				try{
				ObjDoc.DoPrint(0, "0");
				}
				catch(e){
					alert(e);
				}
			}
			else{
				strExport = sDataFolder + strExport;
				ObjDoc.Export(2, strExport, 180);
				window.navigate(strExport);
			}
		}
		else{
			alert("Cannot found the label, please locate at C:\\ams.lbl");
		}
	    //ObjDoc = "";
	}

</script>
{FILE {tempJsRequire}}
</head>

<div></div>
<body id="wrapper">

<div class="top" id="header">
    <div style="padding-top: 20px; padding-left: 20px;font-size: 20px;font-family: Arial; color:#f4f4f4">Aution Mangement System</div>
</div>
<div class="welcome">
	<font color="#d8eb25">{FORM.welcome}  </font> 
    <font color="#FFFFFF"> {admin_username} <font color="#d8eb25">{FORM.welcome1} |</font> <font color="#FFFFFF"> </font></font><a href="?sMod=logout"> <font color="#d8eb25"> {FORM.logout} </font> </a> </div>
<div id="menu">
  <div id="leftmenu">{FILE {tempMenuNav}}</div>
</div>
<div style="background: #000000; height: 3px;"></div>
<div id="pathway">
  <table width="100%">
    <tr>
      <td><table class="adminheading" border="0" id="headingTilte" width="100%">
          <tr>
            <td class="cpanel"><div class="pathway">{FILE {tempPathway}}</div></td>
            <td align="right"><div id="ToolBar"> {FILE {tempToolbar}} </div></td>
          </tr>
        </table></td>
    </tr>
    <tr>
      <td><div style="display:none" id="my_filter_block" >{FILE {search_and_filter_block}}</div></td>
    </tr>
  </table>
</div>
<div id="mainContent"> {sMsg}
  {sErrorMsg}
  <div id="tempMainContent"> {FILE{tempMainContent}} </div>
</div>
{FILE {tempFooter}}
</body>
</html>
<!-- END: main -->
